package com.hxzy.service;

import com.github.pagehelper.PageInfo;
import com.hxzy.controller.admin.employee.req.EmployeeAddReq;
import com.hxzy.controller.admin.employee.req.EmployeeEditReq;
import com.hxzy.controller.admin.employee.req.EmployeeSearchReq;
import com.hxzy.controller.admin.employee.resp.EmployeeEditResp;
import com.hxzy.controller.admin.employee.resp.EmployeeResp;
import com.hxzy.controller.admin.login.req.AdminLoginReq;
import com.hxzy.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author Administrator
* @description 针对表【employee(后台管理员表)】的数据库操作Service
* @createDate 2024-04-23 20:22:43
*/
public interface EmployeeService extends IService<Employee> {

    /**
     * 登录
     * @param req
     * @return
     */
    Employee login(AdminLoginReq req);

    PageInfo<EmployeeResp> search(EmployeeSearchReq req);

    boolean add(EmployeeAddReq req);

    boolean accountExist(String account);

    /**
     * 根据id查询
     * @param id
     * @return
     */
    EmployeeEditResp findById(Long id);

    boolean edit(EmployeeEditReq req);
}
